package org.common.akka.actor;

import akka.actor.typed.Behavior;
import akka.actor.typed.javadsl.ActorContext;
import akka.actor.typed.javadsl.Behaviors;
import org.common.akka.message.BaseMsg;

/**
 * 根Actor，用于初始化ActorSystem与启动其他Actor
 */
public class RootActor extends BaseActor{
    public RootActor(ActorContext<BaseMsg> context) {
        super(context);
    }

    public static Behavior<BaseMsg> create() {
        return Behaviors.setup(RootActor::new);
    }

}
